const { analysisApis, analysisModels } = require('../packages/mock/build/index.ts');

// 解析接口index.ts，并生成接口与接口模型的关系
analysisApis({
  fromFolder: '/src/api',
  fromFilterFile: 'index.ts',
  toFolder: '/mock/output',
  toFile: 'api.ts',
});

// 解析接口模型model.d.ts，并生成接口模型内容
analysisModels({
  fromFolder: '/src/api',
  fromFilterFile: 'model.d.ts',
  toFolder: '/mock/output',
  toFile: 'model.ts',
});
